package simpleapp.utils {
	import avmplus.getQualifiedClassName;
	/**
	 * ...
	 * @author mprzybys
	 */
	public class UUID {
		
		private static const data:Object = { };
		
		public static function create(obj:*):String {
			if (obj == null) throw new ArgumentError("null object cannot have uuid");
			
			var className:String = getQualifiedClassName(obj);
			var numCreated:uint = obj[classname] ||= 0;
			var timeStamp:uint = new Date().getTime();
			obj[classname] = numCreated + 1;
			return className + '-' + numCreated + '-' + timeStamp;
		}
		
	}

}